﻿package com.gamemeal.graphics {
	import flash.display.Graphics;
	import flash.display.Sprite;
	import flash.display.Stage;
	/**
	 * @author Colin
	 */
	public class GraphicUtils {
		static public function fillCheckBoxBG(main : Sprite) : void {
			var stage : Stage = main.stage;
			main.graphics.clear();
			main.graphics.beginBitmapFill(new CheckboxMap());
			main.graphics.drawRect(0, 0, stage.stageWidth,stage.stageHeight);
		}
		
		static public function drawCrossMarkAt(x:Number,y:Number,g : Graphics,size:Number=2) : void{
			g.moveTo(x-size, y-size);
			g.lineTo(x+size, y+size);
			g.moveTo(x+size, y-size);
			g.lineTo(x-size, y+size);
			g.moveTo(x,y);
		}
	}
}
